package com.imooc.joe_springmvc1.el;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * Created by joe on 16-8-9.
 */
@Service
public class DemoService {

    @Value("其他类的属性")//注入普通的字符串
    private String anther;

    public String getAnther() {
        return anther;
    }

    public void setAnther(String anther) {
        this.anther = anther;
    }
}
